package com.ra.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * Author : 今晚几点睡_Ada
 * Date: 2023/3/20
 * Time: 19:04
 * 注:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CategoryDTO {
    @ApiModelProperty(name = "id", value = "分类id", dataType = "Integer")
    private Integer id;

    @NotBlank(message = "分类名不能为空")
    @ApiModelProperty(name = "categoryName", value = "分类名", required = true, dataType = "String")
    private String categoryName;
}
